package com.xyht.sca_s.student_manage_system.modules.fileManagement.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 文件管理
 * </p>
 *
 * @author XYHT
 * @since 2023-02-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_file_management")
@ApiModel(value="SmsFileManagement对象", description="文件管理")
public class SmsFileManagement implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "文件夹名")
    private String fileName;

    @ApiModelProperty(value = "文件夹描述")
    private String description;

    @ApiModelProperty(value = "文件类型  0：目录文件  1：文件")
    private Integer type;

    @ApiModelProperty(value = "父id")
    private String pId;

    @ApiModelProperty(value = "文件路径")
    private String filePath;

    @ApiModelProperty(value = "文件头像")
    private String filePic;

    @ApiModelProperty(value = "文件大小")
    private Integer fileSize;

    @ApiModelProperty(value = "上传人姓名")
    private String uploadUserName;

    @ApiModelProperty(value = "上传人id")
    private String uploadUserId;

    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "文件后缀名")
    private String suffix;


}
